Skip to content

Conversation

@TypeLevelConsoli
Copy link
Collaborator

Introduce more usages of bon to improve the readability and usage of some big functions, and simplify a few test cases by defaulting to a common value.

To help find functions that have a big arity (ie many arguments) I built a helper CLI that uses tree-sitter to query the project: https://github.com/TypeLevelConsoli/rust-arity-scan

@suchapalaver
Copy link
Collaborator

This is cool: https://github.com/tree-sitter/tree-sitter!

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13589528985

Details

  • 53 of 53 (100.0%) changed or added relevant lines in 6 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 75.929%

Files with Coverage Reduction New Missed Lines %
crates/watcher/src/lib.rs 4 92.71%
Totals Coverage Status
Change from base Build 13552941789: -0.06%
Covered Lines: 8419
Relevant Lines: 11088

💛 - Coveralls

@TypeLevelConsoli TypeLevelConsoli merged commit 8d75cf1 into main Feb 28, 2025
10 checks passed
@TypeLevelConsoli TypeLevelConsoli deleted the refactor-verbosity-with-bon branch February 28, 2025 15:10
/// We use phantom data as a marker since it's
/// only used to define what methods are available
/// for each type of network
#[builder(default = PhantomData)]
Copy link

@Veetaha Veetaha Feb 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using #[builder(skip)] for PhantomData fields to avoid generating setters for this field at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants